STEP 17: Now we'll create a list of frequencies for each outcome!

Each time this loop runs, we count the number of times the value appears. That count will be added to freq_list. When the loop is finished, you'll have a complete list of frequencies!

  • Click on . Drag out Append and drop it indented INSIDE your loop.
  • Change the list variable in front from my_list to freq_list. Change the argument in parentheses to freq.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)